<?php

App::uses('AppModel', 'Model');

class KanriModel extends Model {
    public $useTable = 'm_kanri';

    // Use primaryKey
    public $primaryKey = 'id';

    public function getInfoFrmKanri() {
        $params = array();
        // Set fields params
        $params['fields'] = array(	
        						   'KanriModel.id',
        						   'KanriModel.key',
        						   'KanriModel.center_name',
                                   'KanriModel.address',
                                   'KanriModel.tantousha_name',
                                   'KanriModel.round_classification',
                                   'KanriModel.tax_round_classification',
                                   'KanriModel.consump_tax_rate',                                   
                                   );
        return $this->find('first', $params);
    }
}
